---
title: SQL-018: Legal secretary employee ID for an attorney
summary: Legal secretary employee ID for an attorney
status: draft
owner: SAIF Documentation Generator
last_reviewed: 2026-08-21
library: SAIF.Application.Claim.Legal
reference_type: embedded
---

# SQL-018 Legal secretary employee ID for an attorney

Inline scalar (SqlHelper.ScalarQuery(Of String)) for `clsSummaryManager`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-018 |
| **Operation type** | Read |
| **Execution method** | Inline scalar (SqlHelper.ScalarQuery(Of String)) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsSummaryManager` |
| **Criteria property** | N/A |
| **Lifecycle method** | GetLegalSecretaryID() |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:ID` | Input | String (VARCHAR2) | 11 | Attorney employee ID (PROFILE_EMPLID) whose secretary is being looked up |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [ATTORNEY_PROFILE](../database-tables.md#attorney_profile) | SELECT | See [database table section](../database-tables.md#attorney_profile) |

## Sample SQL

```sql
SELECT
  secretary_emplid
FROM attorney_profile
WHERE profile_emplid = :ID
```

## Operations and processes
- Case summary display — legal secretary resolution



## Sources
- SAIF.Application.Claim.Legal\LegalNet\clsSummaryManager.vb
